//
//  CommonTools.swift
//  Y微Z博Y
//
//  Created by mac on 16/10/22.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit

// 微博中需要使用的通知名字
let YZYSWITCHROOTVCNOTI = "YZYSWITCHROOTVCNOTI"

// 微博相关信息
let YZYAPPKEY = "807655454"
let YZYAPPSECRET = "299d0639437f607f97c37e624947bffa"
let YZYREDIRECTURI = "http://www.baidu.com"
// 微博账号和密码
let YZYWBNAME = "jubeisi0516873@163.com"
let YZYWBPASSWD = "958794"


// 主题颜色
let YZY_Color = UIColor.orange
// 屏幕宽高
let YZY_W = UIScreen.main.bounds.width
let YZY_H = UIScreen.main.bounds.height
// 常用字体大小
let YZYBigFontSize: CGFloat = 18
let YZYNormalFontSize: CGFloat = 14
let YZYSmallFontSize: CGFloat = 10
// 随机颜色
func YZY_RandomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
